This is Nurikabe, a japanese puzzle game
To learn how to play, click here
By default all islands are shown as part of a group (purple)
Click a square to make it part of the wall (orange)
Click again to change it back to being part of a group (purple)
Form a continuous, non-looping wall around all groups to win