Refactor uis to allow reuse by win and lose uis.
Add lose ui.