Added comparator

next upload will have methods to pass 3 cards at the start and commented
code