Test.

Added a test case which results in a tie. At the moment the implementation
returns the first hand as the winner (since it's been added to that temp
variable).
Implementation.

Fixed the implementation of compare to also handle ties correctly.
It's not pretty but it does the job.