Refactor code and next challenge.

Add touchesEnded and touchesBegan withEvent functions from challenge
and refactor the ViewController according to the slides.