public boolean canPlayerMove(boolean team) {
        //player: true -> white    false -> black
        int x = team ? 0 : 1;
        for (int i = 0; i < tabellone.length; i++) {
            for (int j = 0; j < tabellone[i].length; j++) {
                if (tabellone[j][i] != VUOTO && ((tabellone[j][i] % 2) == x) && (canMove(j, i) || canEat(j, i))) {
                    return true;
                }
            }
        }
        return false;
    }