Make objects pointers so they can be passed into other functions

- Make player toggleDoor function directly toggle the door
- Make player getObject function directly remove object