Dining Philosophers solution in Scala