lossModal() {
    this.setState(st => ({
      modalContent: {
        ...st.modalContent,
        header: 'You\'ve Lost it All!',
        btnText: 'New Game',
        message: 'The Giant has won and you are out of gold. Click below to restart.',
        close: this.resetGame,
      }
    }));
    this.toggleModal();
    return this.state.modalContent.header;
  }
/** Sets state to display loss modal information */
Sets state to display loss modal information
Sets state to display loss modal information
lossModal() {
    this.setState(st => ({
      modalContent: {
        ...st.modalContent,
        header: 'You\'ve Lost it All!',
        btnText: 'New Game',
        message: 'The Giant has won and you are out of gold. Click below to restart.',
        close: this.resetGame,
      }
    }));
    this.toggleModal();
    return this.state.modalContent.header;
  }
lossModal ( ) { this . setState ( st => ( { modalContent : { ... st . modalContent , header : 'You\'ve Lost it All!' , btnText : 'New Game' , message : 'The Giant has won and you are out of gold. Click below to restart.' , close : this . resetGame , } } ) ) ; this . toggleModal ( ) ; return this . state . modalContent . header ; }
Sets state to display loss modal information
Sets state to display loss modal information