[Square] Fixe some bugs in computeCost function
[Tile] Add a callback event to emit from the tile that emits