Decoding the Mind using Brain Machine Interfaces: Turning Thought into Action