Implemented Ractangular Test

Still has an occasional bug in it I need to iron out