First, you roll all 5 dice, you decide to score a category or lock some of the dice and roll again. You have 2 chances to reroll. After 2 reroll, you must score one of the categories (even it is no point)
The game ended when all the categories are scored.