Fixed weird floortiles bug
Fixed a lot of leaks (CRASHES ON EXIT!)