Fix mapping code and prepare tournament page for editing game.
First steps to implement game tracking..