private void checkTouchPill(){
        
        ArrayList<Line2D.Double> linies = this.getBoundLines();
        if(this.getLives() < this.getStartLives()){
            for (int i = 0; i < linies.size(); i++) {
                for (int j = 0; j < Board.getPills().size(); j++) {
                    if(linies.get(i).getBounds().contains(Board.getPills().get(j).getX(), Board.getPills().get(j).getY())){    
                        this.setLives(this.getStartLives());
                        Board.getPills().get(j).setVisible(false);
                    }
                }
            }
        }
    }