implemented processing of a player's turn