added mousePressed to main sketch