some refactoring
added touch rotation for units