add template to perft function on MoveGenerator (minor change)