Simplify code with lazy val
Improved edge placement grid