reflex agent and minimax implemented