When my gelding was on stall rest after surgery, we found that having a friend staying inside with him during the day really helped. All the barn members at the farm allowed their horses to take turns staying in, in a stall next to Lugnut so he wouldn’t be alone. I also made sure to groom him daily so that he would get attention and we did a ton of ground exercises and stretches to keep him limber and prevented him from getting bored. He was also fed lots of small meals to give him something to do. Hope that helps and good luck!