Rough implementation of captcha function