add viewport tag for mobile

could have sworn I commit this long ago, but it mysteriously
disapeared.  Now it's back, and it works well
clean up collision checks

also adds collision test
fix block tapping actions and basic mechanics