game ending conditions determined.