How Social Media Impacts Elections