small bug fixes
some more small bugs fixes.
introduced some changes including chance actions