Write a program that simulates a guessing game in a GUI program. Ask the user for a number between 1 and 6 in a text field, then roll a die randomly and tell user if he or she won. Write the program in such a way that invalid input (i.e., not an integer between 1 and 6 ) is rejected and the user asked again for input.