I recently got a betta fish that was in a tank with about 30 guppies (about a 5 gallon tank) and he seemed quite calm but he was swimming back and forth on the right side of the tank over and over. When I got him home to my 20 gallon he’s done the same thing. I covered the side he swims on thinking he was seeing his reflection and nothing has changed. He’s not aggressive at all nor does he seem sick but he’s so engrossed in doing this that he doesn’t see the food I put in for him. All other fish act fine and don’t even bother him. Water parameters are temp of 80, ph 7.6 ammonia 0 nitrite and 0 nitrate. Very planted tank as well. Is he just a little dumb or is there anything I can do?