Elliott signs two-year AFL deal with Pies