const unsigned short tilelookup[] = {
0,0,0,0,1,1,1,1,2,2,2,2,3,4,5,6,
1028,1027,1030,1029,2053,2054,2051,2052,3078,3077,3076,3075,7,8,9,10,
1032,1031,1034,1033,2057,2058,2055,2056,3082,3081,3080,3079,11,12,13,14,
1036,1035,1038,1037,15,16,17,18,2065,2066,2063,2064
};

