updated for 3 card match and switch