ZERO DAY jk but i fixed it. I dont know what the hell i was doing before with the pointers this makes much more sense