added method questionDialog
added option to quit player when the connection is lost