Minimax and alphabeta implementations