answered assignment 1 card game