Add Battle mode.

Change-Id: Ibb72e05611b4378e4f09b58708b780fa9dd25288
Add tests for Battle game.
Fix errors.

Change-Id: I9dfc1c9a2e1c20ae372def21256acec3dbff0c51