To toy with something is to manipulate it, to try it out within sets of contexts none of which is determinate.