solved an error in the search function in game.py