code to find solutions to the mosaic maze puzzle