if (from.getY() == to.getY()) { int dir = from.getX() - to.getX(); if (dir == -1) return "S"; else if (dir == 1) return "N"; else Utils.fail("calling getDirection on non-neighbors"); }
    public String getDirection(RawTile from, RawTile to) {	if (from == to)	    return "st";		if (from.getX() == to.getX()) {	    int dir = from.getY() - to.getY();	    if (dir == -1)		return "E";	    else if (dir == 1)		return "W";	    else		Utils.fail("calling getDirection on non-neighbors");	}	if (from.getY() == to.getY()) {	    int dir = from.getX() - to.getX();	    if (dir == -1) 		return "S";	    else if (dir == 1)		return "N";	    else		Utils.fail("calling getDirection on non-neighbors");	}	Utils.fail("calling getDirection on non-neighbors");	return "";    }