public void play()
    {
        if (Greenfoot.isKeyDown("space"))
        {
            jump();
            if (wing.isPlaying() == false)    //Makes sure the sound is not already playing
            {
                wing.play();    //Plays wing sound
            }
        }
        else fall();    //Class from mover which makes the cat move down by adding gravity

        Actor pipe = getOneIntersectingObject(UpperPipe.class);    //Resets world when cat touches the pipe
        if (pipe != null)
        {
            die();
        }

        getWorld().addObject(new Tail(), getX()-43, getY()-movement);
        counterTail += 1;      

        counterPipe += 1;    //Counter for distance between pipes
        if (counterPipe == 70)    //After 70 acts a new pipe will appear
        {
            height = Greenfoot.getRandomNumber(100);    //Sets pipe location to random number
            getWorld().addObject(new UpperPipe(), getWorld().getWidth(), height);

            height += 650;    //Adds hight so the pipe is below the upper one
            getWorld().addObject(new LowerPipe(), getWorld().getWidth(), height);

            counterPipe = 0;    //Resets counter so it will count back to 70 for next pipe
        }
    }