An interactive game for rehabilitation based on real-time hand gesture recognition