public void undo() {
		// YOUR CODE HERE
		// swap to restore status.
		if (!committed) {
			boolean[][] temp = grid;
			grid = grid_backup;
			grid_backup = temp;
			committed = true;
		}
		sanityCheck();
	}