Added basic game loop.