Look at it this way, you've had some fun, some pain as well, but earned a lot of valuable life experience in a relatively safe and harmless way.
My personal advice to you from reading your story would be to work on your jealousy issues, so it doesn't hurt any of your future relationships.