Made it so doors won't be opened twice