Playing 8 ball in MATLAB