Implemented a fix for the minimax with recursive dynamic states.
Work in progress