Made game loop.