refactor
added separate HUD class