To give players a visual feedback of the tiles they select, we need to change their frame according to their value once selected. We know each tile value since it’s stored in value custom property, so we only need to change its frame when selected.
Here is the one and only line we have to write to make this happen:
Do you remember frame property? That’s all we need to show actual tile content. Run the game, select tiles and see their contents.
This is a great step further in the making of the game, but it’s not enough, as at the moment you are able to select how many tiles as you want, while in the original game you must select only two tiles each turn. We need a way to allow the player to select only two tiles.