Fixed the tile stuff.

Everything here works on my end. I'll explain later.