fixed some stuff in tile.js
you can now click tiles