Added tile entity code