First approximation to the collision detection system in 2D. Still has a lot of issue related to determination of collision after long period of time