GUI + AI

Fixed some unnecessary code in AI, Added error messages when user tries
to do something wrong.