public void move()
	{
		if(this.pathprogress >= this.path.length)
		{
			int x = this.x+this.world.random.nextInt(32)-16;
			int y = this.y+this.world.random.nextInt(32)-16;
			if(0 <= x && x < World.SIZE && 0 <= y && y < World.SIZE && this.world.getTileAt(x, y).isWalkable())
			{
				this.path = PathFinding.findPath(this.world, this.x, this.y, x, y);
				this.pathprogress = 0;
			}
		}
		else
		{
			this.dir = this.path[this.pathprogress];
			this.nx += Direction.getDeltaX(this.dir);
			this.ny += Direction.getDeltaY(this.dir);
			this.moveTime = (int)(this.maxMoveTime/this.world.getTileAt(this.x, this.y).getWalkSpeed());
			this.pathprogress++;
		}
	}