added a while

It continues the app until one types exit on last message