Robot programming exercise 2 -pt1

Updated the wall.java so that the program works. Also added a button
listener so that the program will exit correctly.