Charge the battery and have it load tested, then check the charging system.
If you do not have a charged battery in good condition and a properly functioning charging system you will have running problems. Check those first. If the immobilizer has been defeated it is not your problem. Your symptoms suggest your bike stalled because you ran out of electrical power. yYour clicking solenoid also indicates this.