Dining Philosophers solution based on priority