public int score() {
		int result = 0;
		for (int r = 0; r < WIDTH; r++) {
			for (int c = 0; c < WIDTH; c++) {
				if (squares[r][c] == 'X') {
					result++;
				} else if (squares[r][c] == 'O') {
					result--;
				}
			}
		}
		if (result != 0 && gameOver()) {
			if (result > 0) {
				return 100;
			} else {
				return -100;
			}
		}
		return result;
	}