import java.util.ArrayList;

public class MyBot {
  public static void main(String[] args) {
    InitPackage iPackage = Networking.getInit();
    int myID = iPackage.myID;
    GameMap gameGameMap = iPackage.map;

    Networking.sendInit("JavaBot");

    while(true) {
      ArrayList<Move> moves = new ArrayList<Move>();

      gameGameMap = Networking.getFrame();

      for(int y = 0; y < gameGameMap.contents.size(); y++) {
        for(int x = 0; x < gameGameMap.contents.get(y).size(); x++) {
          Site site = gameGameMap.contents.get(y).get(x);
          if(site.owner == myID) {
            Direction dir = Direction.randomDirection();
            moves.add(new Move(new Location(x, y), dir));
          }
        }
      }

      Networking.sendFrame(moves);
    }
  }
}

@@ -177,28 +177,24 @@
 GameMap game
-Game
 Map = iPacka
@@ -321,20 +321,16 @@
     game
-Game
 Map = Ne
@@ -376,28 +376,24 @@
  0; y %3C game
-Game
 Map.contents
@@ -435,28 +435,24 @@
  0; x %3C game
-Game
 Map.contents
@@ -500,20 +500,16 @@
 e = game
-Game
 Map.cont

Update MyBot.java