Hi Contrar,
First, God Bless You for sharing; it takes a lot of courage to share things like you have at such a young age. I commend you, My Brother!
First, Homosexuality is NOT a sin UNLESS you engage in its lifestyle, so stop the guilt just because you may be a homosexual. Masturbation is another thing altogether. Yes, Masturbation IS a sin and you need your Savior's help to overcome it because it can only lead to more frequent sin doing the act and also encourage your homosexuality. See, Buddy, NOTHING - YES NOTHING can tear you away from Jesus' hands once you've accepted Him as your Savior, which I'm assuming you have. However, Satan will continue to tempt you in your most vulnerable area, and that's probably your homosexuality. See he CAN' T HAVE YOU BECAUSE YOU ARE GOD'S CHILD, THEREFORE, he gets joy out of aggravating you with temptation. Also, he loves to condemn you when you sin; to tell you you've let God down and you might as well just give up. SATAN IS A LIAR! In the Book of Romans it states, "Therefore, there is now NO Condemnation for those who are in Christ Jesus!" Remember Jesus died a horrible death for YOUR sins. And, if you sin you can go to the Father and ask His forgiveness by pleading the blood of Jesus and Jesus is right there to tell the Father, "I died for Contrar!" and you will be forgiven. However, this doesn't give you license to just sin. You MUST try to resist temptation. The best way I've found to do this is when you are tempted is to immediately start saying "JESUS' over and over and over until the temtation leaves you. In His Word, Jesus said, " HIS power is made perfect in YOUR weakness!"
You have just started on a long road of living a Christian Life. READ AND BELIEVE GOD'S WORD; PRAY (AND I WILL BE PRAYING FOR YOU AS WELL). YOU ARE LOVED MIGHTILY, MY BROTHER! Especially, thoughtfully and prayerfully read the book of Romans. It is very encouraging for one in your situation. The cross you will have to bear will be a rough one through your life, but, you CAN find Peace, Strength, Love, Hope, and Grace in Jesus. I KNOW!
Now, as for the situation you have described regarding the decision you made to avoid temptation regarding a boy you are attracted to. Your Youth Pastor is correct. You should go to your friend and apologize. It is wrong to make Him feel guilty because of Your guilty. You don't have to 'come out' to him, you can just say that you were upset at the time and that IS the truth, is it not? Now as to what to do in the future with him as a friend. You must remain his friend because, in fact, you are Brothers in Christ. You can't go through life avoiding or breaking friendships every boy or man to whom you become attracted to. It going to be a part of your 'cross to bear'. HOWEVER, you can be friends, even with those you are attracted to, AS LONG AS, AND THIS IS THE 'BIGGY' you depend on Jesus to help you fight your battles of temptation. HE IS THERE TO FIGHT SATAN FOR YOU; jUST CALL ON HIM!! And, My friend, I know - you will be calling on Him a lot and very often. But, just because of you homosexuality, you can't close the world out. God DOES have a plan for YOU and allow Him to let it unfold by trusting Him. Who's to know why this is YOUR cross to bear? But, know that ALL of us have our own crosses to bear and they are, in their own way, just as difficult. So you are not alone!
Know that I WILL continue to pray for you, young man, that you will give your burden to Jesus and let Him take the lead in your life. If you do, your life will be a WONDERFUL ONE. I promise you that because He has promised you that.
If you desire to keep in touch if I can be of further help, encouragement, and pray with you, don't hesitate to call on me. I will be there for you if you need me. God Bless You, and I pray God will enfold you in His Love that you may know YOU CAN TRUST HIM!!
Take Care, My Brother - YOU ARE LOVED!!!