Implemented solving into GUI