added sides swapping / randomizing function