One Pile Nim with Arbitrary Move Function