move to index.html and implement game engine