Random maze generator and solver