What ways are there to hire freelancers for code, without them "owning" the code on their pc? And how likely is it with paid freelancers, that the game wont get to the release?

why are we derailing, the post is about the legal implications of hiring people to do work for him…
with the people doing the work having the ability to run away with the code and release the game on their own.