public void replaceBall()
    { 
        // sends information to world class (MyWorld) to call upon replaceBall method to create a new ball in place of old one.
        ((MyWorld) getWorld()). replaceBall();       
    }