Finished AI. Still some work to do for UI.