How does the AI work?
AI calculated the weight for each cell. The weight is summed up from the possibilities to complete the row in this cell in all directions.