Add setDirection method to Ball. Made the setPosition method private.