Update puttacode.cpp