Added MidnightLightning's test JSON code, adjusted slightly
Added image selection toggle code
Added test selector for images with class "selected"
Added extraction of image identities that have been selected
Added dynamic generation of selectable images with text superimposed, and allow retrieval of ids on submit
Tidied up display of dice
Add dice automatically from two arrays of die values
Divided up functionality into functions
Added simple POST to HTML, and reflect the POSTed variable via a dummy PHP file
Merge pull request #31 from blackshadowshade/game

Added more turns to full Soldiers test case
Added dummy BMGame object and converted part of it to JSON for transmission
Implemented dummy jsonSerialize function for BMGame, and reduced calling code to the stub: json_encode($game)
Fixed BMGame code so that the dice are rolled into the game when the swing values are specified
Fixed BMGame code so that the die sides in recipes are added as integer values
Generate die labels and player indices directly from JSON data
Shifted loading of mock game data into a standalone function.
Added validation of a power attack on submit
Altered attack validation code to automatically detect the attacker and defender, and their corresponding dice
Added checking for pass attacks
Added Game ID and button names, reduced HTML to minimal required to display current game state