Finished main game loop, but have not yet tested it.