register a winner when the votes reaches the 'votes to win' threshold

Implementing functionality so that once the 'votes to win' threshold is reached the battle is marked as completed, the winner & loser entity references are set. This was needed before the scores page (#41) was able to show any results.