Fix bug in game search
tidying