Refactored to conform JSLint.

1. Refactored to conform JSLint.
2. For the unit tests of logic service, match.stateAfterMove is no
longer needed.