title: find closest point to mouse position
body: <p>I've got a grid of sprites.
  Now I would like to drag an image on a grid-element.
  Therefore I need to know which x/y of the grid-element is the closest point to the mouse-position. 
  All the grid-elements are stored in an array.
  How can I achieve that?</p>