To complete a level you must make all the tiles in the play area turn white. You can change the colour of a tile by clicking it, but that will flip the 4 adjacent tiles too.