added collision detection in rectangleCheck.html