modify setBound and add walls