there is something wrong with the it. It keeps on puttering then dying out. Could it be the fuel pump or the fuel filter?
First thing to do would be to extract the check engine codes. This can be done yourself. Here is how: http://www.freeautomechanic.com/diagnostictroblecodes7.html
It isn’t likely a fuel filter or pump. If it was it would idle fine and only when you give it gas(while moving) the engine would bogg way down and have no power. It would not putter and die.