Added command router functionality and implemented onTouchesBegan event.