Removed unnecessary code from minimax