check in Maze.scala and NetworkFlow.scala