fixes dining philosophers bug, will now clean up code into some nice while loops :)