Anyway you need a collision detection algorithm - Program Dream