improved hud
added level
improved code