Moved game code to game.js