added walls code