The pizza delivery firm had a difficult time in 2017 as rival Pizza Hut was hot on its heels