move debug print to Tile, remove unused code