// Tile Class function Tile(x, y, tile, rotation) { this.x = x; this.y = y; this.tile = tile; this.rotation = rotation; this.toString = function() { if(this.rotation == 0) { return ''; } else { return ''; } }; }