Update main.c

added ability to save score