Improve trap detection edge
Introduce SQUARE_DEDGE