flames.cpp