state changing in update method for Player