this is the one i made like 3 years ago, learnt some more stuff and ill make an optimised version soon