rename index.html to game.html
refactoring code