initial version of tile generator