Code refactoring in app.js, one template page for the games.