Fixed #1 - fixes bug where player didn't submit if browser is closed.