Add solve functionality to the GUI