Added an extended module

The boilerplate code needed to figure out whether or not
a Sprite has been clicked started to add up so I moved it
out to an extended module with a small Sprite class in it
instead.