Refactored testing left/right and top/bottom touch constants