Added win-checking logic and slight refactoring.

The game now stops when a player has won. The player's color will fill the
game board and the game board will flash. Still don't know how to draw the
line across the board to indicate the win location. Also some refactoring
but it's not important.

Signed-off-by: nicholaslum444 <nicholaslum444@hotmail.com>