Update runGame.c

Wrote runGame and some supporting functions