fixed victory check