Monkeys trained to play fixed video games made moves indicating that they expected certain patterns to occur. Erika Beras reports