add some game logic