old_contents: export default class EventHandler {
    constructor(game) {
      this.mount(game);
    }
  
    mount(game) {
      window.addEventListener('keydown', this.handleKeys.bind(this, game));
      window.addEventListener('resize',  this.handleResize.bind(this, game));
      window.addEventListener('click',  this.handleClick.bind(this, game));
      window.addEventListener('touchstart',  this.handleTouch.bind(this, game));
      window.addEventListener('orientationchange', this.handleOrientationChange.bind(this, game));
    }
  
    handleOrientationChange(game, e) {
      if(screen.orientation.angle === 0){
        game.pauseGame();
      } else if (screen.orientation.angle === 90) {
        game.pauseGame();
      }
    }
  
    handleKeys(game, e) {
      if(game.state.inGame){
        game.state.partySquare[0].respondToUser(e.keyCode, game.state);
      }
  
      if(game.state.inGame && e.keyCode === 32){
        game.pauseGame();
      }
  
      if(!game.state.inGame && e.keyCode === 13){
        game.startGame();
      }
    }
  
    handleClick(game, e) {
      if(e.toElement.className === "startgame") {
        game.startGame();
      }
    }
  
    handleTouch(game, e) {
      if(game.state.inGame){
        e.preventDefault();
        let touchPoints = e.changedTouches;
  
        if(touchPoints[touchPoints.length - 1].pageX < game.state.screen.width / 2){
          game.state.partySquare[0].respondToTouch('color', game.state);
        } else if (touchPoints[touchPoints.length - 1].pageX > game.state.screen.width / 2) {
          game.state.partySquare[0].respondToTouch('jetPack', game.state);
        }
      }
    }
  
    handleResize(game) {
      game.setState({
        screen: {
          width: window.innerWidth,
          height: window.innerHeight,
          ratio: window.devicePixelRatio || 1
        }
      });
    }
  }
  
new_contents: export default class EventHandler {
    constructor(game) {
      this.mount(game);
    }
  
    mount(game) {
      window.addEventListener('keydown', this.handleKeys.bind(this, game));
      window.addEventListener('resize',  this.handleResize.bind(this, game));
      window.addEventListener('click',  this.handleClick.bind(this, game));
      window.addEventListener('touchstart',  this.handleTouch.bind(this, game));
      window.addEventListener('orientationchange', this.handleOrientationChange.bind(this, game));
    }
  
    handleOrientationChange(game, e) {
      if(screen.orientation.type === "portrait-primary" || screen.orientation.type === "portrait-secondary"){
        game.pauseGame();
      } else {
        game.pauseGame();
      }
    }
  
    handleKeys(game, e) {
      if(game.state.inGame){
        game.state.partySquare[0].respondToUser(e.keyCode, game.state);
      }
  
      if(game.state.inGame && e.keyCode === 32){
        game.pauseGame();
      }
  
      if(!game.state.inGame && e.keyCode === 13){
        game.startGame();
      }
    }
  
    handleClick(game, e) {
      if(e.toElement.className === "startgame") {
        game.startGame();
      }
    }
  
    handleTouch(game, e) {
      if(game.state.inGame){
        e.preventDefault();
        let touchPoints = e.changedTouches;
  
        if(touchPoints[touchPoints.length - 1].pageX < game.state.screen.width / 2){
          game.state.partySquare[0].respondToTouch('color', game.state);
        } else if (touchPoints[touchPoints.length - 1].pageX > game.state.screen.width / 2) {
          game.state.partySquare[0].respondToTouch('jetPack', game.state);
        }
      }
    }
  
    handleResize(game) {
      game.setState({
        screen: {
          width: window.innerWidth,
          height: window.innerHeight,
          ratio: window.devicePixelRatio || 1
        }
      });
    }
  }
  
subject: fix issue