e.e totally updated, lol. Took me a while to figure it out. But i managed to make it about 60 lines shorter