Update Main.c

Added the else if statements for calling the functions.