Button states added

Tested Button states to check when a button is pressed