separate js file for game.