Refactor and document game over panel