Adding tile creation code, in progress