Compare cards

Written the function for comparing of two cards and the tests for this function.