Code for BattleFin Competition