Close to a full game; bad Python code