GAME: Move hud update code into a separate function.