naive implementation of the philosophers