Cognitive ability and games of school choice