gameover_pig function working at the end of game time0