added check for if core is inside empire,
fixed get enemy cores in grid,
added get friendly cores in grid