If an app stops responding completely, you won’t be able to quit by pressing the Home button, as per usual.
Instead, press and hold the On/Off button until the slide to power off message appears and then let go.
Then press the Home button for around six seconds. This forcibly quits the current app and returns you to the Home screen. You can then reopen the app by tapping on its icon.