Refactored updateBounds.
Temporary fix for physics shapes moving strangely, also added support
for
restoring the speed of shapes after pausing/unpausing.