Began coding the function cannon.