Added key and door logic and corrected some other stuff