Fixed WinCheck to allow for end of array