restructuring game.ejs