Created Battlefuncs and ruby connections