Added functionality for spawnTile() method by adding tile.active and getActive() method