[DEV] Improve door generation algorithm

Signed-off-by: nain57 <buzeau.kevin@gmail.com>