Fixed formatting and infinite loop problems with winning/losing