Class participants train brains, have fun