On a New Year day, Vikram visits Casanova Gambling Den with certain amount of money in his purse. Vikram plays 5 games numbered 1, 2, 3, 4 and 5 in that order. Vikram wins all odd numbered games while losing the remaining games. For all odd numbered games, Vikram invests all the money he has with him into the game and wins twice the amount put in. For all even numbered games, Vikram puts in one-fourth the money he has and loses the entire amount. Finally, he has 576 left with him and walks happily with his friend to hotel Dream Land for a dinner.
How much money did Vikram have at the beginning of game 3?