world = w;
    public TrainPathExplorer (ReadOnlyWorld w, int x, int y, byte	    initialDirection) {	this.x = x;	this.y = y;	this.initialDirection = initialDirection;	direction = initialDirection;    }