implementing mallet recognizer