public AngryFriend() {
		JFrame frame = new JFrame("Start Angry Game");
		frame.setLocationRelativeTo(null);
		frame.setMinimumSize(new Dimension(300, 400));
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

		addMouseListener(new MouseAdapter() {
			@Override
			public void mouseClicked(MouseEvent e) {
				if (x == e.getX() && y == e.getY()) {
					win = true;
				}

				// TODO Auto-generated method stub

			}
		});

		addMouseMotionListener(new MouseAdapter() {
			@Override
			public void mouseMoved(MouseEvent e) {
				// TODO Auto-generated method stub
				Random r = new Random();
				int xAnother = r.nextInt(50);
				int yAnother = r.nextInt(50);

				if (xAnother < 26)
					xAnother = 26;
				if (yAnother < 26)
					yAnother = 26;

				int random = r.nextInt(4);

				if (random == 0) {
					x = e.getX() + xAnother;
					y = e.getY() + yAnother;
				} else if (random == 1) {
					x = e.getX() + xAnother;
					y = e.getY() - yAnother;
				} else if (random == 2) {
					x = e.getX() - xAnother;
					y = e.getY() + yAnother;
				} else {
					x = e.getX() - xAnother;
					y = e.getY() - yAnother;
				}
				try {
					Thread.sleep(100);
				} catch (InterruptedException ex) {
					ex.printStackTrace();
				}
				repaint();
			}
		});
		
		frame.getContentPane().add(this);
		frame.pack();
		frame.setVisible(true);

	}