Fix Paybacked Jam and rewrited some simulation functions.
Bugfix