Working on game loop.