Update main.c

Finished removing the old code at the bottom