var tiles=[
  {filename:'aaaa.png', imageclass:'p0', top:'a',right:'a',bottom:'a',left:'a'},
  {filename:'aacb.png', imageclass:'p1', top:'a',right:'a',bottom:'c',left:'b'},
  {filename:'abba.png', imageclass:'p2', top:'a',right:'b',bottom:'b',left:'a'},
  {filename:'bcaa.png', imageclass:'p3', top:'b',right:'c',bottom:'a',left:'a'},
  {filename:'bccb1.png',imageclass:'p4', top:'b',right:'c',bottom:'c',left:'b'},
  {filename:'bccb2.png',imageclass:'p5', top:'b',right:'c',bottom:'c',left:'b'},
  {filename:'bddb.png', imageclass:'p6', top:'b',right:'d',bottom:'d',left:'b'},
  {filename:'caac.png', imageclass:'p7', top:'c',right:'a',bottom:'a',left:'c'},
  {filename:'cbbc1.png',imageclass:'p8', top:'c',right:'b',bottom:'b',left:'c'},
  {filename:'cbbc2.png',imageclass:'p9', top:'c',right:'b',bottom:'b',left:'c'},
  {filename:'cbdd.png', imageclass:'p10',top:'c',right:'b',bottom:'d',left:'d'},
  {filename:'dccd.png', imageclass:'p11',top:'d',right:'c',bottom:'c',left:'d'},
  {filename:'ddbc.png', imageclass:'p12',top:'d',right:'d',bottom:'b',left:'c'},
  {filename:'dddd.png', imageclass:'p13',top:'d',right:'d',bottom:'d',left:'d'}
];