I changed some stuff, the preprocessing has given me ideas, will explain later