protected boolean checkIfBlockCanMove(Block block) {
        for (int i = 0, newCol, newRow; i < block.getWidth(); i++) {
            for (int j = 0; j < block.getWidth(); j++) {
                if (block.get(j,i) == 1) {
                    newCol = block.getLocX() + i;
                    newRow = block.getLocY() + j;
                    if (!withinBorders(newCol,newRow) || board[newCol][newRow].empty == false) {
                        return false;
                    }
                }
            }
        }
        return true;
    }