fixed transitions
added game ending