Fixed the vertical and horizontal win checks