The game ends when there are no tiles left in the bag and a player has used all their letters, or if no player makes a move for six consecutive turns. The winner is the player with the highest score.