func added to tile class