fixing rotated cards on the board