cleaned up play script