Basic game loop implemented.