public boolean collide() {
        for(int i = 0; i < 4; i++) {
            int tx = blocks[i].getX();
            int ty = blocks[i].getY();

            if(tx < 0 || tx > Game.boardSizeX - 1)
                return true;
            if(ty < 0) continue;
            if(ty > Game.boardSizeY - 1 || Game.blocks[tx][ty] != null) {
                return true;
            }
        }
        return false;
    }