added type cheking to game_for_win, game_with_time