added game ending