adding pause function
rewriting hud