Refactor Code

Created HUD Class and refactor the Game.js code