Added brick placement logic