Cleanup game.js and add more methods for todo.