add prgame.c and fix bug in print_game()