Added locking mechanism for directions and rooms, etc. There are still compile time errors