More unit tests and added behaviour to randomly draw winner.