slight change to check_game_over method