Constrain card positions to grid and allow typing in rotation values