standstill code to endOfGame

what do you think?
-also added names to the top