Steve Cook says West Ham's late winner was hard to take and felt the red card shown to Harry Arter had a huge impact on the game.