Update main.c

It refuses to work properly, and I just don't know why --- all the transformations are made, as far as I can tell. Out of time.