rulesModal() {
    this.setState(st => ({
      modalContent: {
        ...st.modalContent,
        message: <WrittenRules />,
        btnText: 'Return to Game',
      }
    }));
    this.toggleModal();
    return this.state.modalContent.btnText;
  }
/** Sets state to display rules modal iformation*/
Sets state to display rules modal iformation
Sets state to display rules modal iformation
rulesModal() {
    this.setState(st => ({
      modalContent: {
        ...st.modalContent,
        message: <WrittenRules />,
        btnText: 'Return to Game',
      }
    }));
    this.toggleModal();
    return this.state.modalContent.btnText;
  }
rulesModal ( ) { this . setState ( st => ( { modalContent : { ... st . modalContent , message : < WrittenRules / > , btnText : 'Return to Game' , } } ) ) ; this . toggleModal ( ) ; return this . state . modalContent . btnText ; }
Sets state to display rules modal iformation
Sets state to display rules modal iformation