added function to check if a player's turn is up