Fix error in battle engine
Ref.: #37