rewrite bed extension logic so that any colors can form bunks