Man on trial allegedly bragged of murder