AI logic for blockwithcharge