Created simple game loop.