ErrorFix

Errorfix for index out of bounds in maze runner