Changed code for minimax algorithm
Coding for minimax in progress...