"Think of it as a computer, but instead of computing something like the local maximum of a function, it computes the best course of action towards pleasure. Because ethics lead to a more pleasant society, the brain will obey the suggestions of ethics to attain more pleasure."
So, there's a pretty huge equivocation here. Ethics (maybe) creates a more pleasant society *on average*; but there could easily be cases where violating ethics would create a more pleasant life for the individual. That's almost the whole point of ethics, actually. I'm not saying either that you can or can't surmount that, but you certainly haven't. The argument you've given is just a huge equivocation.
In any event, even if it weren't for this fallacy, your argument wouldn't really succeed against Thucy's claim. As an empirical fact, unethical behavior does exist (at least on any of the commonly accepted definitions of ethical behavior); so if the brain is a deterministic collection of atoms that seeks to maximize [whatever], then it is an empirical fact that maximizing that does not always lead to ethical behavior. Since your argument appears, at least, to argue the opposite*, this would appear to be a refutation.
*Actually, I'm a little confused about just what your argument is arguing.
One is left, at the end of the day, with the unenviable task of arguing that a different course of action would have been "best" when there was only one course of action available. Your example of the computer is instructive, I think, because we don't actually judge the outcome of a computer program or a mathematical procedure to be wrong in the moral sense, or for there to have been a "better" result.
I haven't really analyzed this subject as fully as I'd like to have, so while I have some opinions, I'll be interested to see the continuing discussion between you and Thucy. It appears to me that the argument you've offered, at least, is flawed.