Wrote WinCondition code.