The effects of atom pinning on hardness in molecular dynamics simulations