Update project01.c

Added "endwin();" so that the program exits properly.