Prevent Browser Default/bypass game over screen

Added function to prevent default browser action and key press to bypass
exit screen