add withcorridors,withghosthouse,withlinks parameters to Maze.currentline(), remainingLine(), nextIntersection() ; create Ghost.justCameHomeEaten() and justLeavedHome() ; create areDirectionsParallel(direction1, direction2)
improve Maze.possibleDirections(point) and rename it to availableDirection(point)
create Line.intersectionPointWith(point) ; create AllowedCorridors class ; create Pacman and Ghost.allowedCorridors() ; replace the 3 previous parameters withcorridors,withghosthouse,withlinks used for some functions of Maze and Pacman with a call to this.allowedCorridors()
replace the 3 previous parameters withcorridors,withghosthouse,withlinks used for some functions of Ghost with a call to this.allowedCorridors()
remove useless comments