Mechanics may have been instrumental in determining the outcome of the election