Added check for horizontal win