Fixed tile spawning bug