Adds icon and fixes bug where the lose resource change was being overriden by the win resource change on load event.