Get your taxes done using TurboTax

Then the mother did not live with the child for more than 1/2 the year so she cannot claim the child.
And the child lived with you for more then 1/2 the year so you can claim the child ... the rules are just that simple.