>The system only has 25^5 states
Not true. The problem is in one-to-one correspondence with the non-negative solutions to
a + b + c + d + e = 25
which is in one-to-one correspondence with the positive solutions to
a + b + c + d + e = 30
which is a simple counting problem---(29 choose 4) = 23751.
In my opinion, you should really try to prove your math to yourself before answering with such an authoritative tone.