Updated the HUD and movement code