Flood the board one color at a time. Fill the entire grid with a single color before you run out of moves.