addedCannon Crash Fix

Needed to instantiate addedCannon before the if statement that compares
it, otherwise program crashes. (For example, if you add a block before
you add a cannon)