Fixed victory checking on ninth turn