Finished logistic for the maze class

All the methods of the maze class work properly.
Clarifying the code

Adjustments to different files.