I am a little confused about how doublespending is done. The basic case is basically creating transactions to the seller and yourself and simultaneously broadcasting those. This is the very classic scenario, would I be correct ?
How does sending money to yourself exactly work? How would a typical transaction look like?
My question is could you hypothetically triple spend or spend x times the original amount. Equally, could you send yourself the money back many hundreds of times? So, if you had 3 bitcoins could you send yourself 3 bitcoins back ?
[update after answer was provided]
how does attacker need to modify transaction so that transaction appears valid when he is sending himself money back ? he has to create block where he is just sending himself money back as transaction. How is btc tracked in transaction then to make this possible ?