Added exit(0) to end game