Scientists have developed a new smartphone game that helps fight dementia