public boolean isCollideingWithBlock(Point pt1, Point pt2) {

        for (int x = (int) (this.x / Tile.tileSize); x < (int) (this.x / Tile.tileSize) + 3; x++) {
            for (int y = (int) (this.y / Tile.tileSize); y < (int) (this.y / Tile.tileSize) + 3; y++) {
                if (x >= 0 && y >= 0 && x < Component.level.block.length
                        && y < Component.level.block[0].length) {
                    if (Component.level.block[x][y].id != Tile.air) {
                        if (Component.level.block[x][y].contains(pt1)
                                || Component.level.block[x][y].contains(pt2)) {
                            return true;
                        }
                    }
                }
            }
        }
        return false;
    }