a convoluted way of 'solving' the Maze demo 