create Maze.nextIntersection(point,direction), Maze.possibleDirections(point), Line.isPoint() ; create LEAVINGHOME GhostState ; make the ghosts search the pacman using part of the original pacman rules