Added button functionality to sprites