AI done. Needs Debugging