Added solution state and made the frame draggable