added safety so a rare chest cannot be changed to a double chest
by placing a chest near, fixes memory leak