Made it check if its the first time it starts
Merge pull request #1 from rockthegames/master

Made it check when its the first time. And changed Exit function.