Load Level Help

Hello, I’ve recently been working on a puzzle game prototype, similar to this - but i’m really struggling how to work out if all the tiles are the same colour (green) and when they are, how to either load the next level or trigger something else. Please help.