-added gameState mecanic
-corrected some hud function
-added some more comment