finished tic_tac_toe.rb logic for AI, it seems work well.