As I feared I haven't comented my code so I'll first have to figure out how it currently works