title: Rectangle.Intersects doesn't work
body: <p>I have two Gameobjects, a player and a star. When those two collide, the star should be declared as a new star, and the score of the player updated with 100 points. The problem is that the method i use for collision doesn't work:</p>
  
  <pre><code>private void collision() {
      if(player.getBounds().intersects(star.getBounds())) {
          star = new Star();
          player.setScore(player.getScore() + 100);
      }
  
      repaint();
  }
  </code></pre>
  
  <p>The getBounds method of the player and star looks like this:</p>
  
  <pre><code>public Rectangle getBounds() {
      return new Rectangle(x, y, width, height);
  }
  </code></pre>
  
  <p>The collide method is being called every millisecond (i know it is too often, it is just for testing), by a Timer with setRepeats(true).</p>
  
  <p>Thank you for your help.</p>