Added updateScores method that updates all the appropriate stuff when a post is voted on.
Fixed conflicts