fix bug for AI_move function choosing four sides(does not include four corners)