Philosopher's dinner using Bakery Algorithm in Java