I have implemented the algorithm, but what I am facing is how can I check constantly whether the element has hit other elements.
Example:
div id='water' when hits div id='orange' should alert , should I use jQuery setInterval :s or is there any other way to keep the function live ?