AI looks for a winning space in rows