moved controls to player class