fixed bug when you won
some ui bugs fixes