added density, friction and restitution to Rectangle.js