moved tile class to tile.js