detecting mouse click and changing sprite color accordingly