added structure to several philosopher functions, and for printing the visual representation