updating the player sprite