@Override
	public void update()
	{
		super.update();
		
		if(this.moveTime == 0)
		{
			this.x = this.nx;
			this.y = this.ny;
			
			
			if((this.world.player.x-this.x)*(this.world.player.x-this.x)+(this.world.player.y-this.y)*(this.world.player.y-this.y) > 3*3)
			{
				if(this.looking)
				{
					this.world.player.hasChild = false;
					this.looking = false;
				}
				this.move();
			}
			else if(!this.world.player.hasChild)
			{
				this.world.player.hasChild = true;
				this.looking = true;
			}
			else if(!this.looking)
			{
				this.move();
			}
		}
	}