public int getScore(Player player) {
		if(player == Player.PLAYER1 && p1score >= 0)
			return p1score;
		else if(player == Player.PLAYER2 && p2score >= 0)
			return p2score;
		int count = 0;
		for(int i=0; i<8; i++) {
			for(int j=0; j<8; j++) {
				if(board[i][j] == player)
					count++;
			}
		}
		if(player == Player.PLAYER1)
			p1score = count;
		else if(player == Player.PLAYER2)
			p2score = count;
		return count;
	}