Design and implementation of a BCI system using EEG based motion imagination