Fixed game parsing in url2state.

Should accept more than just "hg" or "black".