correcting the input of players in games