Update game.c

Making code more modular