private boolean checkTouchObject(int pos){
        
       ArrayList<Line2D.Double> linies = this.getBoundLines();
       boolean toca = false;
        for (int i = 0; i < linies.size(); i++) {
            for (int j = 0; j < Board.getObstacles().size(); j++) {
                Rectangle r = new Rectangle((int)Board.getObstacles().get(j).getX(),(int)Board.getObstacles().get(j).getY(),Board.getObstacles().get(j).getWidth(),Board.getObstacles().get(j).getHeight());
   
                if(linies.get(pos).getBounds().intersects(r)){
                  
                    toca = true;
                }
            }
        }
        return toca;
   
    }