All three of those games use the same copy-and-pasted code for playing cards and evaluating the tricks on the table. Making those "library" functions that all trick-taking games could use (remember to handle no-trump as well, even though Contract Bridge isn't in the game yet) would help drastically reduce code duplication.