added switching maze