Implements winnig check