//In response to stop algorithm button being pressed public static void StopAlgorithm(AlgorithmState to_handle) { loaded_state = to_handle; to_handle.EraseBoardForReset(); //Special function that creates a new board but keeps bender's position //clear the board and keep bender ResetConfiguration(); //Clear comboboxes and other forms }