Update game.c

Error handling modified for converting num to string function