public boolean setField(int x, int y, char player) {
        if (x > 4 || x < 1 || y > 4 || y < 1) {
            return false;
        } else {
            for (int i = 1; i < field.length + 1; i++) {
                for (int j = 1; j < field[i - 1].length + 1; j++) {
                    if (((i == y) && (j == x) && field[i - 1][j - 1] == '+')) {
                        field[i - 1][j - 1] = player;
                        return true;
                    }
                }
            }
            return false;
        }

    }