public void paintComponent(Graphics g) {
	super.paintComponent(g);
	try {                
	    image = ImageIO.read(new File("res/sheep.png"));
	} catch (IOException ex) {
	    }
	try {                
	    image2 = ImageIO.read(new File("res/shepherd.jpg"));
	} catch (IOException ex) {
	    }
	try {                
	    image3 = ImageIO.read(new File("res/wolf.png"));
	} catch (IOException ex) {
	    }
	if (y >= 300 && x > 480){
	    win = true;
	    win2 = true;
	    g.drawString("YOU HAVE WON",260,220);
	}
	if ((y >= 20 && y<=270) && (x >= 120 && x<=270)){
	    win = true;
	    win2 = true;
	    g.drawString("YOU HAVE LOST",260,220);
	}
	else {
	    g.drawImage(image2, 560, 350, null);
	    g.drawImage(image3, 200, 100, null);
	    g.drawImage(image, x, y, null);
	}
		
    }