import java.util.ArrayList;

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

		Networking.sendInit("BasicJavaBot");

		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 moveDirection = Direction.randomDirection();
						if(site.strength < site.production*5) {
							moveDirection = Direction.STILL;
						} else {
							for(Direction d : Direction.CARDINALS) {
								if(gameGameMap.getSite(new Location(x, y), d).owner != myID) {
									moveDirection = d;
									break;
								}
							}
						}
						moves.add(new Move(new Location(x, y), moveDirection));
					}
				}
			}

			Networking.sendFrame(moves);
		}
	}
}

@@ -173,28 +173,24 @@
 GameMap game
-Game
 Map = iPacka
@@ -312,20 +312,16 @@
 %0A%09%09%09game
-Game
 Map = Ne
@@ -364,28 +364,24 @@
  0; y %3C game
-Game
 Map.contents
@@ -419,28 +419,24 @@
  0; x %3C game
-Game
 Map.contents
@@ -475,28 +475,24 @@
  site = game
-Game
 Map.contents
@@ -762,20 +762,16 @@
 %09if(game
-Game
 Map.getS

Update BasicBot.java