updating the player