This is a updated and improved version of v1.0 hopefully this one works better i did more research and tried to make this one more well rounded and adaptive
Another test and improved version hopefully it works better than the previous one