public void CheckGoal()
{
if (getX() + getImage().getWidth() / 2 > areaLeft && getX() - getImage().getWidth() / 2 < areaRight && getY() + getImage().getHeight() / 2 > areaTop && getY() - getImage().getHeight() / 2 < areaBottom)
setLocation(getX() + 400, getY());
pitch spaceWorld = (pitch) getWorld();
Counter counter = spaceWorld.getCounter();
counter.bumpCount(1);
count++;
myLabel.setText("Score: " + count);
}
