Rewrite of game.js file. All game logic and initialization is in its own
file