Not important, but the compound additions are the same in each clause of the if. They could be moved below the block to get rid of the repetition, but it's only two lines to it's not really a big deal.