AI for numbrix puzzle