moved the wall algorithm to level constructor