A brain for Ginsbot