Replaced 'number' by 'rank'.
Added hand evaluation.