Added rectangles for collision detection

As of now, a message is printed when “collision” is detected.