A simple, probably inefficient method of finding the closest entity to the mouse. This might be used in a tower defence game, where the towers automatically aim to the nearest enemy target