fixed my problem :)

im an idiot and tried to think of an algorithm instead of simple stuff