buildCannon() function

Additional comments in all of my functions.