remove useless comments ; create ModeUpdate class
create and use Line.extremity(direction)
create and use oppositeDirection(direction) and Line.pointAtDistance(distance, direction)
create and use Pacman.goToPointInsideRemainingLine(remaining, point, maze, status)