private void findCodelOnEdge(CodelArea area) {
        DirectionPointer directionPointer = mMachine.getDirectionPointer();
        CodelChoser codelChoser = mMachine.getCodelChoser();

        boolean isLeft = codelChoser.isLeft();

        if (directionPointer.isRight()) {
            if (isLeft) {
                mEdgeCodel.set(area.maxXMinY());
            } else {
                mEdgeCodel.set(area.maxXMaxY());
            }
        } else if (directionPointer.isBottom()) {
            if (isLeft) {
                mEdgeCodel.set(area.maxYMaxX());
            } else {
                mEdgeCodel.set(area.maxYMinX());
            }

        } else if (directionPointer.isLeft()) {
            if (isLeft) {
                mEdgeCodel.set(area.minXMaxY());
            } else {
                mEdgeCodel.set(area.minXMinY());
            }
        } else if (directionPointer.isTop()) {
            if (isLeft) {
                mEdgeCodel.set(area.minYMinX());
            } else {
                mEdgeCodel.set(area.minYMaxX());
            }
        }
    }