battle base code works