I am glad to hear things are going better for you
Please do not put yourself in solitary confinement or feel you need to experience any kind of punishment for feelings you have. Your attractions are your attractions and you are not doing something on purpose or something that warrants punishment!
If you have a strong faith in God maybe just take some time to self reflect. Lay down alone and just pray… try to focus and let your faith lead you.
People will give you a lot of advice but its always going to come from their beliefs …
just like I wont give you MY advice because my faith is not the same as yours -
your faith and relationship to God belong to YOU! Spirituality is shared but its also very personal…
So just try to focus on that and let God lead you- open yourself up and try to really feel the guidance from with in-
this may sound very strange …

But you truly have to find a way to make peace with yourself in a way that works for you - You don’t want to spend your whole life at war with yourself it will eventually start to tear you apart.
If you ever need someone to talk to feel free to PM me - I’d be happy to listen and not try to push you in any direction.
its hard being in high school and figuring these things out - but when you learn how to work through it and reason on your own it becomes easier and easier as you get older.
all my best
you are in my thoughts