This variant does have a bug. Please try this one:http://www.cut-the-knot.org/Games/BlockNRoll.shtml
http://www.cut-the-knot.org/Games/BlockNRoll.shtml