Working agent with Minimax and alpha beta.