Joey King has shaved her hair off for a new role