fixing bugs in body ball code