Finally with working tiles.

Many errors were fixed. TileFactory now produces TilePrototypes, so
inherit from this type from now on.