public static Value changePlayer(Value player) {
        Value state = empty;
        switch(player) {
            case x: {state = o; break;}
            case o: {state = x; break;}
        }
        return state;
    }