I don't think it is a grass. It's hard to identify without a closer picture of the seed heads. I wondered about a rush like Juncus articulatus (see pics in the link) but its seeds are not black. Do you have any clearer/closer pictures, or are you back in Japan now?