Azul/Game Ending

Here is the ending for Azul:
The game will end as soon as any player completes a horizontal line of 5 consecutive tiles on their wall during the Wall-tiling phase.
Once the game is over, players can score additional points based on their achievements, which are as follows:
*2 points will be gained for each complete horizontal line of 5 consecutive tiles on the player's wall.
*7 points will be gained for each complete vertical line of 5 consecutive tiles on the player's wall.
*10 points will be gained for each color where the player has placed all 5 tiles on their wall.
The player with the highest score on their score track will be the winner. If there is a tie, the player with more complete horizontal lines will win. If that still does not break the tie, the victory will be shared.