Added win conditions for rows and columns, and tie condition