algorithm almost done, with a small bug
debug deleted
debug is iritating should find a way to ignore the files