Refactored 'Hud' code into private functions

Did this to neaten it up a bit for adding minimap code.