Global try-catch that will do a call to ResetView and RefreshBattlefield to attempt to recover from a player manually resizing their window and then moving the cursor out of bounds.
the catch should check how often it occured so it does not attempt to recover from an unrecoverable situation (max 10 retries should be okay..)
the max 10 retries should be reset when user input is being handled again, because that probably means the game has recovered succesfully
Global try-catch that will do a call to ResetView and RefreshBattlefield to attempt to recover from a player manually resizing their window and then moving the cursor out of bounds.