optimized winCheck to break loop upon finding win