debugged wall following code - words for walls on either side