Changed the cheating algorithm