added new variables to temp levels so that collision detection works