Started to implement rectangular intersection for the collision detection.