IMPLEMENTED A WORKING AI!