public boolean closeToGround(int currentX, int currentZ, int width, int hight) {
        boolean closeToGround = false;
        for(int x = currentX; x < currentX + width; x++) {
            if(currentZ+hight-10 > ground[x]) {
                closeToGround = true;
            }
        }
        return closeToGround;
    }