moved key control for player to player class