Changes to get rectangle collision physics working