added walls and checkking