protected boolean checkForCollision(int[][] tempBlock, int tempX, int tempY) {
        clearMovingBlocks(tempBlock, 1);
        for (int i = 0; i < tempBlock.length; ++i) {
            for (int j = 0; j < tempBlock[i].length; ++j) {
                //Testing if the block is in the bounds of gamestatus
                if (i + tempX>-1 && i + tempX < this.status.length && i + tempX > -1 && j + tempY < this.status[0].length && tempX > -1) {
                    if (this.status[i + tempX][j + tempY] == 1 && tempBlock[i][j] == 1) {
                        return true;
                    }
                } else {
                    return true;
                }
            }
        }
        return false;
    }