Fixed error in maze initiation.