Add a function to get uids.

We need this so that we can uniquely identify the objects in the game.
Add the UID to the actor.