Implemented seemingly working circle/rectangle intersection detection.