Implements game over functionality.
Tweaking, mainly with error message and catching.