Added quite unfinished routine for exiting game.

Needs still some work. E.g. it would be good to have a prompt for user
which askes whether user wants to end or not.