Syntax, memory leakage

* Changed some syntax
* Fixed a memory leakage in TileMap