init game when ended