On your turn, throw the color die and take a wooden piece of the same color and put it onto already placed ones constructing a stack. A player looses the game if the stack crashes. If the last piece is added and the stack still didn't crash, all players win.