Refactored. Added win logic for rows.

Refactored some of the code. Cleaned it up. Removed unneeded portions.
Tried to improve efficiency in places. Added win logic for rows. Still
need to add win logic for diagonals and columns.