Also, there is no need to pass 2 arguments to the BUTTON function unless you are using multiplayer. The first parameter selects the feature (type of button press) you want to get the status from, and the second one selects the terminal (multiplayer participant). For example, BUTTON(3) will return the status of all buttons released. You can check out all features on the help entry for BUTTON.