Add ActionListener to solve button.