bug in Ball class fixed