Implement gameloop.
Test the game.