Abstract out the get_lines function and introduce a crude heuristic function for the AI minimax