Adds rotation, checking to see if shape is nearby, and rectangle collision