The blue cubes teleport you to a random point in the labyrinth when used, and the green ones return you to the entrance/exit, purple cubes allow you to void/delete walls to create new pathways.
There are multiple codes that can open the exit btw, some codes can give you a silly win etc.
Thanks for playing!