fixed minimax bug, added more efficient way to pass tokens, and limited minimax algo usage