Rectangle sprite button method added

Not too sure why it is not working correctly, haven't had much time to
look at the code but I can't see why it isn't working. Maybe a bug in
the .getBoundingRectangle() method not sure.