create new card use method point instead of if/else
remove the redundant 'flag' in main.cpp
change the cards array to linklist
add files CardList.cpp and CardList.h
add the class Factory to create instance