add exit button, add game thread