square maze of any size fully functional