Hacky attempt at making it work...
and it does! (sometimes... mostly...)
will continue when I'm not bored of it anymore