WE CRACKED THE GAME FOR YA!
HACK! http://www.txmafia.com/xgencastle.sol
Find it in windows/application data/macromedia/flash player/newgrounds/...
Its something like that. Here are the array values. You'll have to crack your own number combos, but they fill up the same spaces every time.
0 - nothing
1 - magician
2 - repair
3 - archer
4 - temple
5 - archer
6 - boom
7 - workshop
8 - mana pool
9 - points
10 - casuality
11 - spendable
12 - life
13 - level
Hack brought to you by www.txmafia.com
It helps to have a hex editor, the file provided is for perfect fun and play!