move game.js to game view