Updated lock function

Made it so doors disappear and reappear according to lock and unlock
Revert "Updated lock function"

This reverts commit d5038d257910c6dafee6858c125c82133e3e88e5.