Fixed the error in the generation. During cell initialization all walls were being set to down(false) instead of up(true)