BCI applications in medicine and gaming