Updated WaitForDoor (now uses setTimeout() instead of System.getCurrentBlaBla())