Fixing bitmasking, passing through taps to buttons