Basic game loop.