GUI + Backend + AI

Fixed a stupid bug that i made in backend
Fixed a few bugs with GUI