Function for placing doors and triggers