Detecting collision when rotating a shape/piece

1 
1