-ADDED- EndGame function