Optimization & Exit

Removed a no longer needed while loop. Also setup a proper exit strategy
for the game.