Assignment code for CS193P Matchismo