changed movement to updateMovement in Player.hx