public void move(ArrayList<Player> allPlayers, boolean didCollide)
	 {
		  Player closestPlayer = searchClosestPlayer(allPlayers);

		  if ((coolDownTimer <= 0) && (!didCollide)){
		       if (closestPlayer.getX() > this.getX()){
				    this.directionX = 1;
				 }
				 else if (closestPlayer.getX() < this.getX()){
		          this.directionX = -1;
				 }
				 else{
		          this.directionX = 0;
				 }
		       if (closestPlayer.getY() > this.getY()){
				    this.directionY = 1;
				 }
				 else if (closestPlayer.getY() < this.getY()){
		          this.directionY = -1;
				 }
				 else{
		          this.directionY = 0;
				 }

		     this.setX(getX() + (directionX * getWidth()));
           this.setY(getY() + (directionY * getHeight()));
           coolDownTimer = randomWithinRange(minMoveTimer, maxMoveTimer);
		  }
        else if(didCollide){
   	     this.setX(getX() + (directionX * getWidth()));
           this.setY(getY() + (directionY * getHeight()));;
		  }
		  else{
		     coolDownTimer -= coolDownRate;
		  }
    }