moved everything to game.js