separated hud class, moving update logic there