private boolean isAttackPlaceAboveNotHarming(int position, char[] boardElements, int dimension) {
        if (isPossibleToPlaceOnPreviousLine(positionAboveRight(position, dimension))
                && isPositionInRangeOnTheRight(position, dimension)) {
            if (isBoardElementAnotherFigure(boardElements[positionAboveRight(position, dimension)])) {
                return false;
            }
        }
        if (isPossibleToPlaceOnPreviousLine(positionAboveLeft(position, dimension))
                && isPositionInRangeOnTheLeft(position, dimension)) {
            if (isBoardElementAnotherFigure(boardElements[positionAboveLeft(position, dimension)])) {
                return false;
            }
        }
        return true;
    }