Walmart fight for store near Civil War battlefield goes to court