merged code, still need to fix collision with other balls