When you add a brick from the tray, it places it after the currently selected brick (if there is a selected brick).
Simplified brick code
Merge pull request #1945 from flukeout/brickplacement

Brick placement update when adding