Coding the draw method of the HUD class