public void run() {
    int i;
    if ((game.deaduntil>game.stepnum) || (game.gameover) || (game.youwin)) {
      muststep = 0;
    }
    String text = new String();
    if (game.deaduntil>game.stepnum)
      text = "YOU'RE DEAD";
    else if (game.gameover)
      text = "GAME OVER";
    else if (game.youwin)
      text = "YOU WON";
    else if (game.pause)
      text = "PAUSE";
    else
      muststep = (muststep+1)%4;
    label.setText("Points: "+game.points+" Cocomen: "+game.lives+"  "+text);
    repaint();
    if (muststep == 0) {
      game.step();
      if (nextheading != 'q') {
        setHeading(nextheading,false);
      }
    }
  }