Added Synchronized loops to the cashier, cook, and marketAgents.

It should work good, but I'll run the program just to be sure