first version of tile.h