def onclick(sk, ev):
    """Event handler for mouse clicks"""
    chimp = sk['Chimp']
    if chimp.spin == 0 and chimp.contains(sk.mouse.pos):
        chimp.oldVel = chimp.vel
        chimp.config(spin=-8, vel=(0, 0))
        sk['Score'] += 1
        sound = 0
    else:
        sound = 1
    sk.sounds[sound].play()
