Also, as a general comment, you could save yourself some code if you recorded responses as just `"l"` or `"r"` rather than `"left"` and `"right"`. (And you could use `null` rather than `"none"` for no response.)