Full implementation on Minimax working