Algorithm work

Small work on algorithm
More algorithm work

small changes, final commit of today
something went wrong

idk what went wrong here