added winning checks for row and column