Fixed a major bug in the wall drawing function.