Added tile type and onContact/onLeave function
Added attributes to units object