Refactored touch controls into parent class