adding restitution and friction to body component; code refactoring of body component