public Karel()
    {
        this.setTitle("Karel");
        initComponents();
        InitUI();
        Timer Gemupdater = new Timer(49, new ActionListener()
        {
          @Override
          public void actionPerformed(ActionEvent evt)
          {
              StepCount.setText("" + world.getStepCount());
              GemCount.setText("" + world.getPlayerGem());
              // Checking if the current logtext is not the same
              if (!logText.getText().matches(world.getStepThrough()))
              {
                logText.setText(world.getStepThrough());
              }
          }
        });
        Gemupdater.start();
        programmerThread = new Thread();
    }