Labirinth representation taken from javascript arrays