Implement raw game loop