completed coin.cpp (for now), all debugging messages commented out