cannonball script will determine the speed and eventually direction
fixed null checks