Disabled Buttons

created a function called button, which disables buttons, depending on location. However, it does not work for west button....