basic ,ball, breaker in java for CS class