Update game.c

making it more modular