Flood-fill from the top-left corner. Pick a color to change all connected same-colored cells. Fill the entire grid in as few moves as possible!