Fixed lag issues by increasing the tile buffer size, and cleaning up some old code