fix game crash, more work on dialog
dialog refactor complete