fix matthewswallace and elsassph nme-tilelayer source code
into JbIPS nme-tilelayer