public int paintBlock(int currentBlock, int imagePixel) {
        int newBlockType = getBlockTypeIdFromPixel(imagePixel);
        if(newBlockType != -1) {
            currentBlock = newBlockType;
        }
        return currentBlock;
    }