basic framework for tracking hand and recog it