Assigning weight to doors(Solved)