I think I fixed Minimax; it's not supposed to support both players perspectives!
Removed some debug statements from minimax
I think there's a glitch in how it's determining battle end...