refactor code, touch control and added lives