Update crack.cpp