Car flips onto its side in Hamilton crash