Do some implementation of game logic.