replaced obstaclesToWalls the Java 8 way

formatted code
replaced mutli-line commented code by multiple single line commented
code