The driver behind the wheel of a speeding car that slammed into a tree, killing two young boys, enjoyed racing and showing off, a court has been told.