Update brick.cpp