An excessive attempt at simulating the roll of a die (in Haxe)