Ah chess... a strong subject of mine.
''Given a standard chess board consisting of 64 squares with each game taking a total of 40 moves. Calculate the total number of games which can be played. ''
What is that meant to mean? A game depends on how fast it can achieve checkmate? In 40 moves, you can only play one game! :)
Is it a riddle?
If not, and I take what you have said below
''So there are 20 possible moves at the start of the game. 20 for white and 20 for black. There are a total of 400 possible games which consist of only 2 moves in total.''
I can tell you this... the number of possible choices of moves in any game reduce drastically towards an end game. I believe however the problem you are speaking about is called the ''game tree complexity.''
http://en.wikipedia.org/wiki/Game_tree
I assume you get the 20 moves in a possible opening by taking all pawns that can move once, which is 8, then the pawns can move also two squares which amounts to 8, then the knights which make four (since a knight can move towards to the rim or towards the center). If that is the product of how many game's that can possibly start, then sure, you have 400 possible start-up conditions, this doesn't allude to how many games can be won in the complexity of the moves within the middle and end game.