Jam City raises $350M, buys mobile game creator Ludia for $165M