public void updateActions(BufferedReader in, int num) throws IOException {
		tickBombs();
		for(int i = 0; i < num; ++i){
			String[] splitline = in.readLine().split(" ");
			Player player = players.get(splitline[0]);
			if(player == null || player.dead) continue;
			String action = splitline[1];
		
			if(action.equals("UP")){
				player.move(0, -1);
			} else if(action.equals("DOWN")){
				player.move(0, 1);
			} else if(action.equals("LEFT")){
				player.move(-1, 0);
			} else if(action.equals("RIGHT")){
				player.move(1, 0);
			} else if(action.equals("BOMB")){
				map[player.x][player.y].addBomb();
			} else {
				throw new IOException("Unknown action: " + action);
			}
		}
	}