Added functions for touch handling. Implementing touchBegan function.