implemented AlertDialog for end game condition. #82