Need some help with a transaction. I'm trying to write my own wallet for learning purposes. I was able to get the PoW algorithm working in my local project and broadcast the transaction successfully for a transfer of 1iota. The transaction has been pending for almost a whole day, and I've tried promoting it and replaying it hundreds of times. I think I may be doing it wrong though. Can someone take a look at this transaction and tell me what I may have done wrong?

https://thetangle.org/transaction/LPYBCFJFOLLBAWTGJPBFJRLMVFYUAVKRRNTAY9ATVPLNYLXVGDMG9DFCWOSEHWQQQPVNXNKNAFKW99999