Modified Master.scala to use numWorkersVisited and numWorkersAlive instead of stopPos