simple maze generator and solver