Add click function to dice. Improve debug output.