dice control step by step