Extracted EndGame method