my attempt at a Java solution to the Dining Philosophers problem