@Override
	public void run() {
		super.run();
		
		int i = 0, iTmp = new Random().nextInt(20)+1;
		
		firtsFase();

		while (health > 0) {
			
			time = (1000 / start.FPS) - (System.currentTimeMillis() - time);

			if (time > 0) {
				try {
					move();
					if (y > player.getY()-70) {
						lookUp();
					} else {
						lookDown();
					}
					shoot();
					rec = new Rectangle(x + 15, y, 150, 100);
					rec2 = new Rectangle(x + 50, y + 5, 85, 62);
					i++;
					if (i == iTmp) {
						i = 0;
						iTmp = new Random().nextInt(20)+1;
						changeDir();
					}
					Thread.sleep(200);
				} catch (Exception e) {
				}
			}
		}
		player.endGame(true);
	}