Working touch controls. Reorganise all code.