Use moves_remaining as the number of layers to go.