Click on a colored square to bucket-fill the grid from the top-left corner.

Press R to restart the game.