Updated main to include game loop.