added generator.js to make random map tiles.