Modified cheating algorithm