detect winner when game with keyboard