Add framework of game logic